function n = nindep(x)
  n = size(x.d,2);
